package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.sys.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysMenuMapper {
    List<SysMenu> selectAll();

    Long selectChildrenCountById(Long id);

    void deleteById(Long id);

    void save(SysMenu sysMenu);

    SysMenu selectById(Long id);

    void update(SysMenu sysMenu);

    Long selectCountByTitle(SysMenu sysMenu);

    List<Long> selectByRoleId(Long roleId);

    List<SysMenu> listUserMenu(Long userId);
}
